package com.zw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zw.entity.SysUser;

import java.util.Set;

/**
 * 用户信息表(SysUser)表服务接口
 *
 * @author makejava
 * @since 2025-01-02 16:54:54
 */
public interface SysUserService  extends IService<SysUser> {

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    String login(String username, String password);

    /**
     * 验证密码
     * @param user
     */
    void validate(SysUser user);

    /**
     *
     * @param user
     * @return
     */
    Set<String> getMenuPermission(SysUser user);
}
